import service from '@/utils/request'

// 获取未读站内消息
export const getUnreadMessageList = () => {
    return service.get('/notification/website_message/unread')
}

// 单条消息已读
export const updateMessageRead = (alertMessageId: number) => {
    return service.post('/notification/website_message/read', { alertMessageId })
}

// 全部消息已读
export const updateAllMessageRead = () => {
    return service.post('/notification/website_message/all/read')
}

export const unhandleAlert = (ids: any) => {
    return service.post('/alert/alert/message/unhandled/list', ids)
}